package mapper

import (
	"ksd-social-api/commons/base/controller"
	"ksd-social-api/modules/advert/service"
)

type AdvertController struct {
	controller.BaseController
}

var advertService = service.AdvertService{}

/**
 * @author feige
 * @date 2023-10-08
 * @desc 根据类型查询广告
 */
func (web *AdvertController) FindAdvertByType() {
	// 1: 获取课程id
	ftype, _ := web.ParseParamInt64("ftype")
	// 3: 开始查询课程的信息
	advertVos := advertService.FindAdvertByType(ftype, web.GetSystemId())
	web.Ok(advertVos)
}
